package yf.mall.enums;

import lombok.Getter;


/**
 * ${comments}
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Fri Sep 20 17:51:45 CST 2019
 */
@Getter
public enum CartSelectedEnum {


    NO(0,"未选")
    ,


    ON(1,"选中")

    ;


    int index;
    String value;

    CartSelectedEnum(int index,String value) {
        this.index = index;
        this.value = value;
    }

    public static String indexOf(int idx) {
        return CartSelectedEnum.values()[idx].getValue();
    }

}
